package com.zhuiyun.educations.api.live.service;

import com.zhuiyun.educations.api.live.entity.LiveEntity;
import com.zhuiyun.educations.common.response.CommonResult;
import org.springframework.web.multipart.MultipartRequest;

/**
 * @ClassName LiveService
 * @Description TODO
 * @Author cjl
 * @Date 2023/6/28 10:47
 **/
public interface LiveService {
    CommonResult getLiveByUserId(Integer userId);

    CommonResult saveLive(LiveEntity liveEntity, MultipartRequest multipartRequest);

    CommonResult getLiveById(Integer id);

    CommonResult checkLiveByUserId(Integer userId);

    CommonResult listLive();

    CommonResult closeLive(Integer id);
}
